import {createdUUID} from "@/view/MindMap/lib/utils";

export const chartDataV2 = {
  id: '0.这是根节点',
  levelType: 0,
  children: [{
    id: '0-1.aaaccc',
    levelType: 1,
    children: [{
      label: 'Logistic regression',
      id: '0-1-1.aaa',
      levelType: 1,
    }, {
      label: 'Logistic regression',
      id: '0-1-2.bbb',
      levelType: 1,
    }]
  }, {
    id: '0-11.aaadd',
    levelType: 2,
    children: [{
      label: 'Logistic regression',
      id: '0-11-1.aaa',
      type: 'right',
      levelType: 2,
    }, {
      label: 'Logistic regression',
      id: '0-11-2.ccc',
      levelType: 2,
    }]
  }]
}


export function createNodePagingList(len = 100,levelType){
  const list = []
  for (let i = 0; i<= len; i ++){
    list.push({
      id: createdUUID() + '.' + Date.now(),
      levelType: levelType,
      nodeType: 'paging'
    })
  }
  return list
}
